<include file="public:header" />
<!--文章列表-->
<div class="pad_lr_10" >
    <form name="searchform" method="get" >
    <table width="100%" cellspacing="0" class="search_form">
        <tbody>
        <tr>
            <td>
            <div class="explain_col">
                <input type="hidden" name="g" value="admin" />
                <input type="hidden" name="m" value="coin" />
                <input type="hidden" name="a" value="index" />
                <input type="hidden" name="menuid" value="{$menuid}" />
                &nbsp;&nbsp;{:L('status')}:
                <select name="status">
                <option value="-1">-{:L('all')}-</option>
                <option value="1" <if condition="$search.status eq '1'">selected="selected"</if>>已审核</option>
                <option value="0" <if condition="$search.status eq '0'">selected="selected"</if>>未审核</option>
                </select>
                &nbsp;&nbsp;会员ID :
                <input name="uid" type="text" class="input-text" size="25" <if condition="$search['uid']">value="{$search.uid}"</if> />
                <input type="submit" name="search" class="btn" value="{:L('search')}" />
            </div>
            </td>
        </tr>
        </tbody>
    </table>
    </form>

    <div class="J_tablelist table_list" data-acturi="{:U('user_coin/ajax_edit')}">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
                <th width=25><input type="checkbox" id="checkall_t" class="J_checkall"></th>
                <th width="60"><span data-tdtype="order_by" data-field="id">ID</span></th>
                <th align="center"><span data-tdtype="order_by" data-field="uid">会员ID</span></th>
                <th align="left"><span data-tdtype="order_by" data-field="uname">会员昵称</span></th>
                <th align="center"><span data-tdtype="order_by" data-field="money">充值金额</span></th>
                <th><span data-tdtype="order_by" data-field="coin">数量</span></th>
                <th align="center"><span data-tdtype="order_by" data-field="add_time">添加时间</span></th>
                <th><span data-tdtype="order_by" data-field="pays">支付方式</span></th>
                <th><span data-tdtype="order_by" data-field="pays_status">支付状态</span></th>
                <th width="40"><span data-tdtype="order_by" data-field="status">{:L('status')}</span></th>
                <th width="80">{:L('operations_manage')}</th>
            </tr>
        </thead>
        <tbody>
            <volist name="list" id="val" >
            <tr>
                <td align="center"><input type="checkbox" class="J_checkitem" value="{$val.id}"></td>
                <td align="center">{$val.id}</td>
                <td align="center">{$val.uid}</td>
                <td align="left">{$val.uname}</td>
                <td align="center">￥{$val.money}</td>
                <td align="center">{$val.coin}</td>
                <td>{$val.add_time}</td>
                <td align="center">
                	<if condition="$val.pays eq 0">未知</if>
					<if condition="$val.pays eq 1"><font color=green>微信支付</font></if>
					<if condition="$val.pays eq 2"><font color=blue>支付宝支付</font></if>
					<if condition="$val.pays eq 3">酒吧订单赠送</if>
				</td>
				<td align="center">
                	<if condition="$val.pays_status eq 0"><font color=red>未支付</font></if>
					<if condition="$val.pays_status eq 1"><font color=green>已成功</font></if>
					<if condition="$val.pays_status eq 2"><font color=blue>无效</font></if>
				</td>
                <td align="center"><img data-tdtype="toggle" data-id="{$val.id}" data-field="status" data-value="{$val.status}" src="__STATIC__/images/admin/toggle_<if condition="$val.status eq 0">disabled<else/>enabled</if>.gif" /></td>
                <td align="center"><a href="{:u('coin/edit', array('id'=>$val['id'], 'menuid'=>$menuid))}">{:L('edit')}</a> | <a href="javascript:void(0);" class="J_confirmurl" data-acttype="ajax" data-uri="{:u('coin/delete', array('id'=>$val['id']))}" data-msg="{:sprintf(L('confirm_delete_one'),$val['title'])}">{:L('delete')}</a></td>
            </tr>
            </volist>
        </tbody>
    </table>

    <div class="btn_wrap_fixed">
        <label class="select_all"><input type="checkbox" name="checkall" class="J_checkall">{:L('select_all')}/{:L('cancel')}</label>
        <input type="button" class="btn" data-tdtype="batch_action" data-acttype="ajax" data-uri="{:U('coin/delete')}" data-name="id" data-msg="{:L('confirm_delete')}" value="{:L('delete')}" />
        <div id="pages">{$page}</div>
    </div>

    </div>
</div>
<include file="public:footer" />
</body>
</html>
